package day3;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class Market {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("是否为会员");
        String hui = in.next();
        System.out.print("输入购物金额");
        double jin = in.nextDouble();
        if (hui.equals("是")) {
            if (jin >= 200) {
                jin *= 0.75;
                //System.out.println("实际金额" + jin);
            } else {
                jin *= 0.8;
                System.out.println("实际金额" + jin * 0.8);
            }
        } else {
            if (jin >= 100) {
                //System.out.println("实际支付" + jin * 0.9);
                jin *= 0.9;
            }
            //else {
//               // System.out.println("实际支付" + jin);
//            }
        }
        System.out.println("实际支付" + jin);
    }
}
